/******************************************************************************/
/* File: tcpTrafficRecver.h                                                   */
/******************************************************************************/

#ifndef TCPTRAFFICRECVER_H
#define TCPTRAFFICRECVER_H

#include <time.h>
#include "thread.h"
#include "dataStore.h"
#include "utilClass.h"
#include "socketClass.h"

class TCPTrafficRecver : public Thread {

public:
	TCPTrafficRecver(TCPSocket *pts, ThreadConf *ptc);
	~TCPTrafficRecver();

	void UploadReport(double begin, double end, int64_t transfer, double bandwidth);
	
	void ExitCleanUp();
	virtual void Run();
	
protected:
	TCPSocket *pTcpSock;
	ThreadConf *pThreadConf;
	
	char *pRecvBuf;
};

#endif

/******************************************************************************/
/* End File: tcpTrafficRecver.h                                               */
/******************************************************************************/